/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Northern Caddoan</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * abstDomain: A18224 (C-0-T18130-A18223-A18224-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getNorthernCaddoan()
 * @model extendedMetaData="name='NorthernCaddoan'"
 * @generated
 */
public enum NorthernCaddoan implements Enumerator {
	/**
	 * The '<em><b>XARI</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #XARI_VALUE
	 * @generated
	 * @ordered
	 */
	XARI(0, "xARI", "x-ARI"),

	/**
	 * The '<em><b>XPAW</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #XPAW_VALUE
	 * @generated
	 * @ordered
	 */
	XPAW(1, "xPAW", "x-PAW"),

	/**
	 * The '<em><b>XWIC</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #XWIC_VALUE
	 * @generated
	 * @ordered
	 */
	XWIC(2, "xWIC", "x-WIC");

	/**
	 * The '<em><b>XARI</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>XARI</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #XARI
	 * @model name="xARI" literal="x-ARI"
	 * @generated
	 * @ordered
	 */
	public static final int XARI_VALUE = 0;

	/**
	 * The '<em><b>XPAW</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>XPAW</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #XPAW
	 * @model name="xPAW" literal="x-PAW"
	 * @generated
	 * @ordered
	 */
	public static final int XPAW_VALUE = 1;

	/**
	 * The '<em><b>XWIC</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>XWIC</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #XWIC
	 * @model name="xWIC" literal="x-WIC"
	 * @generated
	 * @ordered
	 */
	public static final int XWIC_VALUE = 2;

	/**
	 * An array of all the '<em><b>Northern Caddoan</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final NorthernCaddoan[] VALUES_ARRAY =
		new NorthernCaddoan[] {
			XARI,
			XPAW,
			XWIC,
		};

	/**
	 * A public read-only list of all the '<em><b>Northern Caddoan</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<NorthernCaddoan> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Northern Caddoan</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static NorthernCaddoan get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			NorthernCaddoan result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Northern Caddoan</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static NorthernCaddoan getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			NorthernCaddoan result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Northern Caddoan</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static NorthernCaddoan get(int value) {
		switch (value) {
			case XARI_VALUE: return XARI;
			case XPAW_VALUE: return XPAW;
			case XWIC_VALUE: return XWIC;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private NorthernCaddoan(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //NorthernCaddoan
